package com.chang.springsecurity.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "security.jwt")
@Data
public class JwtConfig {
    private String secret;
    private long expiration;    // 单位：毫秒
    private String header = "Authorization";
    private String prefix = "Bearer ";
}
